package org.example.service;

import org.example.entity.OrderUser;
import org.example.entity.OrderUserPageByStatus;
import org.example.entity.PageBean;

public interface OrderUserService {
    /**
     * 添加新订单
     * */
    boolean addOrderUser(OrderUser orderUser);

    /**
     * 用户获取个人订单
     * */
    OrderUserPageByStatus getOrderUserByOpenId(String openId);
    /**
     * 删除订单
     * */
    boolean deleteOrderByOrderId(Integer orderId);

    PageBean<OrderUser> listByReason(Integer pageSize, Integer page, String orderIdBegin, String orderIdEnd, String status,String phone,String username, String beginTime, String endTime);

    boolean orderSend(String orderId);

    boolean cancelOrder(String orderId);

    boolean orderComplete(String orderId);
}
